home *** CD-ROM | disk | FTP | other *** search
/ Die Ultimative Software-P…i Collection 1996 & 1997 / Die Ultimative Software-Pakete CD-ROM fur Atari Collection 1996 & 1997.iso / i / internet / software / dlinksr / cookie.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-04-01  |  951 b   |  32 lines

  1. /********************************************************************/
  2. /*                                                                    */
  3. /*    Packet driver for D-LINK DE600 ethernet controller                */
  4. /*                                                                    */
  5. /*    Copyleft by P. Mayer, 1993 TU-Vienna IAEE                        */
  6. /*    All rights reserved                                                */
  7. /*                                                                    */
  8. /********************************************************************/
  9.  
  10. /* cookie jar */
  11.  
  12.  
  13. typedef struct
  14. {
  15.     long    id;
  16.     long    val;
  17. } COOKIE;
  18.  
  19. #define ENDCOOKIE    0L
  20. #define NETENVCOOKIE 0x4e455443L            /* "NETC" */
  21.  
  22. COOKIE *new_cookiejar(long n);            /* create cookiejar,        */
  23.                                         /* if a bigger one exists,    */
  24.                                         /* get old one                 */
  25. COOKIE *get_cookiejar(void);            /* find start of cookijar     */
  26. COOKIE *add_cookie(long id ,long val);    /* add a cookie,             */
  27.                                         /* if no jar exists,         */
  28.                                         /* create a new one and     */
  29.                                         /* then add cookie            */
  30. COOKIE *get_cookie(long id);            /* find a specific cookie     */
  31.  
  32.